Skip to content

Sort both inputs in comm difference examples - #255

Open
mau5trobe wants to merge 1 commit into
cheat:masterfrom
mau5trobe:docs/comm-sorted-inputs
Open

mau5trobe wants to merge 1 commit into
cheat:masterfrom
mau5trobe:docs/comm-sorted-inputs

Conversation

@mau5trobe

Copy link
Copy Markdown

The first-file-only example passed its inputs directly to comm, which assumes they are sorted. Use the same process substitution as the common-lines example and show the complementary second-file-only comparison.

Verified all three commands in Bash with unsorted inputs (pear, apple and plum, apple, one value per line). They returned apple, pear, and plum, respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant